package com.gxa.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class FinancialVo {
    @ApiModelProperty(name = "id",notes = "财务ID,主键",dataType = "Integer",required = true)
    private Integer id;
    @ApiModelProperty(name = "type",notes = "类型,0,收入,1支出",dataType = "Byte",required = true)
    private Byte type;
    @ApiModelProperty(name = "status",notes = "状态,0,有效,1,无效,2,待定",dataType = "Byte",required = true)
    private Byte status;
    @ApiModelProperty(name = "head",notes = "标题",dataType = "String",required = true)
    private String head;
    @ApiModelProperty(name = "amount",notes = "金额,收入为正,支出为负",dataType = "BigDecimal",required = false)
    private BigDecimal amount;
    @ApiModelProperty(name = "deptId",notes = "部门ID，外键",dataType = "Integer",required = true)
    private Integer deptId;
    @ApiModelProperty(name = "account",notes = "账户,0支付宝,1微信,2建行",dataType = "Byte",required = true)
    private Byte account;
    @ApiModelProperty(name = "handleTime",notes = "经手时间",dataType = "Date",required = true)
    private Date handleTime;
    @ApiModelProperty(name = "handler",notes = "经手人",dataType = "String",required = false)
    private String handler;
    @ApiModelProperty(name = "description",notes = "描述",dataType = "String",required = false)
    private String description;
    @ApiModelProperty(name = "remark",notes = "备注",dataType = "String",required = false)
    private String remark;
    @ApiModelProperty(name = "annex",notes = "附件",dataType = "String",required = false)
    private String annex;
    @ApiModelProperty(name = "create_time",notes = "创建时间",dataType = "String",required = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String createTime;
    @ApiModelProperty(name = "updateTime",notes = "更新时间",dataType = "String",required = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String updateTime;
    @ApiModelProperty(name = "isDeleted",notes = "是否删除(0,未删,1,删除)",dataType = "Byte",required = false)
    private Byte isDeleted;
    @ApiModelProperty(name = "depName",notes = "部门名称",dataType = "String",required = true)
    private String depName;
}
